<div id="center_bottomwrapper">
  <?php loadview("menu") ;?>
  <div id="rightcontent">
    <div style=" margin-left: 22px; float: left ; width: 700px; height: auto;"> 
      <script type="text/javascript">
		$(document).ready(function(){            
			var winH = $(window).height();
			var winW = $(window).width();
			var heightImg = $("body").height();
			//alert(heightImg);
			if(heightImg >= 1000){
				 var h = parseInt(heightImg);
				$('#bgid').css('height',h);
			}else{
				$('#bgid').css('height','100%');
			}
			$('#bgid').css('width','100%');
		});
	</script>

      <div class="sanphammoi" style="margin-top: 5px;">
        <div class="tieude"> <img src="<?php echo base_url; ?>public/images/bgtieude.png">
          <h1 style="left: 5px;">Chi tiết sản phẩm</h1>
          <img src="<?php echo base_url; ?>public/images/hinhnhan.png"> </div>
        <hr style="background-color: #ffbc89; width: 697px; border: none; position: absolute; top: 34px;">
        <div class="chitiet">
          <div class="detail">
            <div id="leftdetail">
              <div id="images">
                <div class="targetarea diffheight">
                <img id="multizoom2" alt="<?php echo $data['pro_detail']['pro_name'] ;?>" title="<?php echo $data['pro_detail']['pro_name'] ;?>" src="<?php echo base_url."uploads/products/".$data['pro_detail']['pro_images'] ;?>">
                </div>
                
              </div>
              
            </div>
            <div id="rightdetail">
              <h1><?php echo $data['pro_detail']['pro_name'] ;?></h1>
              
              <div id="righticonlike">
                <form action="index.php?page=shopping&act=add&pid=<?php echo $data['pro_detail']['pro_id']; ?>" method="post">
                  <div class="detail_info_bachnx">
                  	<?php echo $data['pro_detail']['pro_info'] ;?>
                  </div>
                  <div class="detail_info_bachnx">
                  	<strong>Bảo hành: </strong> <?php if($data['pro_detail']['pro_war'] == ''){echo "Liên hệ";}else{echo $data['pro_detail']['pro_war'];};?>
                  </div>
                  <div class="detail_info_bachnx" style="color:#f00">
                  	<span style="text-decoration:underline;font-weight:bold;color:#f00">Khuyến mãi:</span> 
					<?php if($data['pro_detail']['pro_promotion'] == ''){echo "Liên hệ";}else{echo $data['pro_detail']['pro_promotion'];};?>
                  </div>
                  <p class="status"><strong>Trạng thái:</strong> <span style="color:#f00;"> <?php if($data['pro_detail']['pro_qty'] == ''){echo "Hết hàng";}else{echo "Còn hàng";};?></span></p>
                  <p class="market_price" style="margin:5px 0px;"><strong>Giá thị trường:</strong> <span style="text-decoration:line-through;color:#666;"> 
		<?php if($data['pro_detail']['pro_market'] == ''){echo "Liên hệ";}else{echo number_format($data['pro_detail']['pro_market']);};?> VNĐ
        </span></p>
                  <h2><strong>Giá :</strong>
                    <label style="color:#FF8000;font-size: 15px; font-weight: bold;">
                    	<?php if($data['pro_detail']['pro_price'] == ''){echo "Liên hệ";}else{echo number_format($data['pro_detail']['pro_price'])." vnđ";};?>
                    </label>
                    </h2>
                   <!--div class="market_price" style="margin:5px 0px;">
                        <a style="color:#0a62ac" href="javascript:user_like_content(<?php echo $data['pro_detail']['pro_id']; ?>,'pro');">Thêm vào yêu thích <img style="max-width: 25px;position: relative;top: 5px;" src="<?php echo base_url; ?>public/images/icons_user_like.png" alt="Thêm vào yêu thích" title="Thêm vào yêu thích"></a>
                    </div-->
                  <div id="order"> Số lượng:
                    <select id="soluong" name="s_quantity">
                      <option value="1">1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                      <option value="5">5</option>
                      <option value="6">6</option>
                      <option value="7">7</option>
                      <option value="8">8</option>
                      <option value="9">9</option>
                      <option value="10">10</option>
                    </select>
                    <input id="btnmuangay" type="submit" value="Mua ngay" title="Mua và thanh toán">
                  </div>
                </form>
              </div>
              
            </div>
            
            <div class="cls"></div>
            <div class="detail_full_info">
            	<script type="text/javascript">
				  $(document).ready(function(){
					  var c=$(".list_tabs li a");
					  var a=$(".detail_items");
					  a.hide();
					  a.eq(0).show();
					  c.click(function(){
						  $val=$(this).attr("name");
						  a.hide();
						  $(".items_active").removeClass("items_active");
						  $(this).addClass("items_active");
						  a.eq($val).fadeIn();
						  return false	
					  })
				  });
				</script>
            	<ul class="list_tabs">
                	<li><a href="javascript:void(0);" name="0" class="items_active">Thông tin sản phẩm</a></li>
                    <li><a href="javascript:void(0);" name="1">Bình luận</a></li>
                    <li><a href="javascript:void(0);" name="2">Video</a></li>
                </ul>
                <div class="cls"></div>
                
                <div class="detail_items">
                	<?php if($data['pro_detail']['pro_full'] == ''){echo "Chưa cập nhật !";}else{echo $data['pro_detail']['pro_full'];};?>
                </div>
                <div class="detail_items">
                	<div class="fb-comments" data-href="<?php echo base_url."".$data['pro_detail']['pro_name_rewrite']."/p"."".$data['pro_detail']['pro_id'].".html";?>" data-width="660" data-numposts="5" data-colorscheme="light"></div>
                </div>
                <div class="detail_items">
                	<?php if($data['pro_detail']['pro_video'] != NULL){?>
          <iframe src="http://www.youtube.com/embed/<?php echo $data['pro_detail']['pro_video'] ;?>?wmode=transparent" frameborder="0" width="716" height="460"></iframe>
         <?php }else{echo "Chưa cập nhật !";};?>
                </div>
            </div>
          </div>
        </div>
      </div>
      <!--end list--> 
    </div>
  </div>
  <!--End #rightcontent--> 
</div>
<!--End #center_bottomwrapper--> 